package com.zx._10_设计模式.创建型模式.原型模式.model;

import java.io.Serializable;

//采用序列化与反序列化的方式
public class Model2 implements Serializable {

    private static final long serialVersionUID = 1L;

    private long id;
    private String name;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

}
